Reproducible builds requires that the build time stamp is not
authorPaul Gevers <elbrus@debian.org>
Fri, 27 Feb 2026 16:30:28 +0000 (16:30 +0000)
committerPeter Blackman <peterb@debian.org>
Fri, 27 Feb 2026 16:30:28 +0000 (16:30 +0000)
commitac45c23127422762590c82e1134e23b20b2cbf45
tree3c1cf8129ca0dc3c23ac339bd90f8d6625bc90e3
parent6404ea5f2b635688939d75c46ee2da2fb0373b1e
Reproducible builds requires that the build time stamp is not

recorded in binaries. In FPC they are fuild in via the $INCLUDE %DATE%
directive which calls getdatestr in globals.pas. To allow reproducible builds
we should honor the SOURCE_DATE_EPOCH environment variable. To not depend on
the dateutil unit, we include the required code from that package here.

Gbp-Pq: Name honor_SOURCE_DATE_EPOCH_in_date.patch
fpcsrc/compiler/globals.pas